<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
       fn(parseInt(prompt()),parseInt(prompt()))

function fn(a,b){
   var d;
   var c;
   d=a+b
   c=a*b
   console.log("你所输入的数字的和是:",d,"你所输入的数字的积是:",c)
}

    </script>
</body>
</html>